package com.sales.excption;


import com.sales.enums.ExceptionEnum;
import lombok.Getter;

/**
 * Created by lihu on 2017/9/18.
 */
@Getter
public class SalesException extends RuntimeException {

    private Integer code;

    private String message;

    public SalesException(ExceptionEnum resultEnum) {
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();
        this.message = resultEnum.getMessage();
    }


}
